//
//  Team9ExpertImagViewCell.m
//  Team9Project
//
//  Created by 朱嘉祺 on 15/10/19.
//  Copyright © 2015年 apple. All rights reserved.
//

#import "Team9ExpertImagViewCell.h"
#import "Team9Header.h"
#import "Team9JQHeader.h"
#import "Team9DesignPhotoModel.h"

@interface Team9ExpertImagViewCell ()

@property(nonatomic, strong) UIImageView *myImageView;
//@property(nonatomic, strong) UILabel *styleLabel;
//@property(nonatomic, strong) UILabel *titleLabel;
//@property(nonatomic, strong) UILabel *nameLabel;
//@property(nonatomic, strong) UILabel *nickLabel;
//@property(nonatomic, strong) UILabel *sypeLaebl;


@end
@implementation Team9ExpertImagViewCell

- (void)setModel:(Team9DesignPhotoModel *)model
{
    if (_model != model) {
        _model = model;
    }
//    [Team9Tool sd_imageView:self.myImageView image:self.model.pic placeholderImage:@"111"];
    [Team9Tool sd_imageView:self.myImageView image:self.model.pic placeholderImage:@"111" detailImage:self.model.pic_detail];
//    NSLog(@"%@", self.model.pic_detail);
//    NSLog(@"%@", self.model.pic);
}
- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView{
    
    self.myImageView = [UIImageView new];
    [self.contentView addSubview:_myImageView];
    
    [self.myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).insets(UIEdgeInsetsMake(10, 10, 10, 10));
    }];
//    self.myImageView.backgroundColor = [UIColor yellowColor];
    
}

@end
